import request from '@/utils/request'

//获取文章分类信息
export const articleChannelService = () => request.get('/my/cate/list')

//添加文章分类
export const artAddChannelService = data => request.post('/my/cate/add',data)

//编辑文章分类
export const artEditChannelService = data => request.put('/my/cate/info',data)

//删除文章分类
export const artDelChannelService = id => request.delete(`/my/cate/del?id=${id}`)

//获取文章列表
export const artListService = data => request.get('/my/article/list',{params:data})

//发布文章
export const artAddService = data => request.post('/my/article/add',data)

//更新文章
export const artUpdateService = data => request.put('/my/article/info',data)

//删除文章
export const artDelService = id => request.delete(`/my/article/info?id=${id}`)

//获取文章详情
export const artDetailService = id => request.get(`/my/article/info?id=${id}`)
